/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package SessionBeans;

import entityBeans.Products;
import java.util.List;
import javax.ejb.CreateException;
import javax.ejb.Local;

/**
 *
 * @author BELALOUACHE
 */
@Local
public interface CartLocal {

    CartLocal create() throws CreateException;

    public void addProduct(int productPK);
    public void removeProduct(int productPK);
    public void buy(String accountId);
    public void clear();
    public double getTotalPrice();
    public void ejbRemove();
    public void ejbCreate() throws javax.ejb.CreateException;
    public List<Products> getLesProduits();
    public void setSolde(java.lang.Double solde);
    public java.lang.Double getSolde();
    public void setEtat(SessionBeans.Cart.EtatEnum etat);
    public SessionBeans.Cart.EtatEnum getEtat();
    public void setLesProduits(java.util.List<entityBeans.Products> lesProduits);
    public SessionBeans.Cart getCart();
}
